<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
 
class schueler_controller extends CI_Controller {
 
 function __construct()
 {
   parent::__construct();
   $this->load->model('kurseteilnehmer_model');
   $this->load->model('klausuren_model');
   $titel = 'Schüler Login';
 }
 
 function index()
 {
   $this->load->helper(array('form'));
   $this->load->view('schueler_login_view');
  
 }
 
 public function schuelerklausuren_view()
 {
     $session_data = $this->session->userdata('logged_in');
	 $kurse = $this->kurseteilnehmer_model->get_kurse($session_data['id']);
	 $data['klausuren'] = $this->klausuren_model->get_schuelerklausuren($kurse);

	 $data['_scripts'] = '';
  	 $data['_styles'] = '';
 	 $data['head'] = '';
	 $data['schulname'] = 'Berufskolleg Uerdingen';
	 $data['navi'] = $this->load->view('login/schuelernavi_view', $data,TRUE);
	 $data['login'] = '';
	 $data['content'] = $this->load->view('klausuren/schuelerklausuren_view', $data,TRUE);
	 $data['footer'] = $this->load->view('templates/footer', $data, TRUE);
	
	 $this->load->view('MeinBKU_Template/MeinBKU_Template/template', $data);
 }
	 
}
	 
?>